import Home from '@/views/home'
import List from '@/views/list/list.vue'
import Mine from '@/views/mine/mine.vue'
import About from '@/views/about/about.vue'
import Base from '@/views/base/base.vue'
import Deatil from '@/views/detail/detail.vue'
import DoctorDeatil from '@/views/doctor/doctor-detail.vue'
import Order from '@/views/order/order.vue'
import Yijian from '@/views/yijian/yijian.vue'
import Payinfo from '@/views/payinfo/payinfo.vue'
import NavBar from '@/components/nav-bar'
import TabBar from '@/components/tab-bar'
import Des from '@/views/des/des.vue'

const routes = [
  {
    path: '/',
    redirect: '/home' // 重定向
  },
  {
    path: '/home',
    // component: Home
    components: {
      header: NavBar,
      default: Home,
      footer: TabBar
    },
    meta: {
      title: '在线问诊',
      icon: '&#xe617;',
      isTab: true
    }
  },
  {
    path: '/list',
    components: {
      header: NavBar,
      default: List,
      footer: TabBar
    },
    meta: {
      title: '健康百科',
      icon: '&#xe7cb;',
      isTab: true
    }
  },
  {
    path: '/mine',
    components: {
      header: NavBar,
      default: Mine,
      footer: TabBar
    },
    meta: {
      title: '我的',
      icon: '&#xe62d;',
      isTab: true
    }
  },
  {
    path: '/about',
    components: {
      header: NavBar,
      default: About,
      footer: TabBar
    },
    meta: {
      title: '关于我们'
    }
  },
  {
    path: '/base',
    components: {
      header: NavBar,
      default: Base,
      footer: TabBar
    },
    meta: {
      title: '基本信息'
    }
  },
  {
    path: '/detail',
    components: {
      header: NavBar,
      default: Deatil,
      footer: TabBar
    },
    meta: {
      title: '文章详情'
    }
  },
  {
    path: '/order',
    components: {
      header: NavBar,
      default: Order,
      footer: TabBar
    },
    meta: {
      title: '服务订单'
    }
  },
  {
    path: '/yijian',
    components: {
      header: NavBar,
      default: Yijian,
    },
    meta: {
      title: '意见反馈'
    }
  },
  {
    path: '/detail',
    components: {
      header: NavBar,
      default: Deatil,
      footer: TabBar
    },
    meta: {
      title: '文章详情'
    }
  },
  {
<<<<<<< HEAD
    path: '/doctor',
    components: {
      header: NavBar,
      default: DoctorDeatil
    },
    meta: {
      title: '医生详情'
    }
  },
  {
    path: '/payinfo',
    components: {
      header: NavBar,
      default: Payinfo
    },
    meta: {
      title: '订单信息'
=======
    path: '/des',
    components: {
      header: NavBar,
      default: Des,
      footer: TabBar
    },
    meta: {
      title: '病情描述'
>>>>>>> 完成我的
    }
  }
]

export default routes
